From 96637b39d10db0d7e90eced5fe1e09de77bd7b8a Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Wed, 2 Mar 2011 11:42:37 +0100 Subject: [PATCH] fix building in separate directory --- babl/Makefile.am | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/babl/Makefile.am b/babl/Makefile.am index 6abf148..490779b 100644 --- a/babl/Makefile.am +++ b/babl/Makefile.am @@ -61,11 +61,14 @@ h_sources = \ babl-util.h library_includedir=$(includedir)/babl-$(BABL_API_VERSION)/babl -library_include_HEADERS = \ - babl-macros.h \ - babl-types.h \ - babl-version.h \ +libinc_hdrs = \ + babl-macros.h \ + babl-types.h \ babl.h +libinc_generated_hdrs = \ + babl-version.h +library_include_HEADERS = \ + $(libinc_hdrs) $(libinc_generated_hdrs) AM_CPPFLAGS = \ -DLIBDIR=\""$(libdir)"\" \ @@ -99,7 +102,8 @@ Babl-$(BABL_API_VERSION).gir: $(G_IR_SCANNER) $(library_include_HEADERS) $(c_sou -DBABL_IS_BEING_COMPILED \ -I$(top_srcdir) \ -I$(top_builddir) \ - $(addprefix $(srcdir)/, $(library_include_HEADERS)) \ + $(addprefix $(srcdir)/, $(libinc_hdrs)) \ + $(addprefix $(builddir)/, $(libinc_generated_hdrs)) \ $(addprefix $(srcdir)/, $(c_sources)) girdir = $(datadir)/gir-1.0 -- 2.30.2